Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在 post 中也可以添加一个配置项 toc_number,这样就可以单独为 post 设置了。 #451

Merged
merged 1 commit into from
Oct 26, 2015

Conversation

restran
Copy link
Contributor

@restran restran commented Oct 23, 2015


title:
layout: post

toc_number: false

可以在 post 中单独配置是否显示 TOC 的标题序号

iissnan added a commit that referenced this pull request Oct 26, 2015
在 post 中也可以添加一个配置项 toc_number,这样就可以单独为 post 设置了。
@iissnan iissnan merged commit e7fec32 into iissnan:master Oct 26, 2015
@xnervwang
Copy link

xnervwang commented Nov 4, 2017

hexo官方文档中已经有list_number这个设置项,为什么还要额外增加toc_number这个设置项?
这至少花了我一个小时来研究为什么list_number不生效,最后通过看sidebar.swig的源码才知道原因。

或者至少应该在next的文档中说明toc_number这个选项。

tianshan pushed a commit to tianshan/hexo-theme-next that referenced this pull request Feb 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants